package org.flowers.unbeaten.base.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @description 部门vo
 * @author RyanWang
 * @date 2021-08-05 10:57:32
 * @version 1.0
 */
@Data
@Accessors(chain = true)
public class DepartmentVo {

    @ApiModelProperty(value = "部门ID")
    private String departmentId;

    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "部门编号")
    private String departmentCode;

    @ApiModelProperty(value = "父级ID")
    private String parentId;

    @ApiModelProperty(value = "部门层级")
    private String path;

    @ApiModelProperty(value = "状态 0.禁用 1.正常")
    private Integer status;

    @ApiModelProperty(value = "子集")
    private List<DepartmentVo> children;

    @ApiModelProperty(value = "是否展开")
    private boolean spread = true;

    @ApiModelProperty(value = "是否选中")
    private boolean checked = false;

    @ApiModelProperty(value = "是否禁用")
    private boolean disabled = false;

}
